package cn.demo.entity;

/**
 * @Author weizhongli
 * @Date 2020/4/5
 * @Version v1.0
 * @Description 商品实体类
 **/
public class Product {
    private Integer id;
    private Integer code;
    private String name;
    private Double price;
    private String spec;
    private String message;
    private Integer providederId;
    private provider provider;

    public Product() {
    }

    public Product(Integer id, Integer code, String name, Double price, String spec, String message, Integer providederId, provider provider) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.price = price;
        this.spec = spec;
        this.message = message;
        this.providederId = providederId;
        this.provider = provider;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getProvidederId() {
        return providederId;
    }

    public void setProvidederId(Integer providederId) {
        this.providederId = providederId;
    }

    public cn.demo.entity.provider getProvider() {
        return provider;
    }

    public void setProvider(cn.demo.entity.provider provider) {
        this.provider = provider;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", code=" + code +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", spec='" + spec + '\'' +
                ", message='" + message + '\'' +
                ", providederId=" + providederId +
                ", provider=" + provider +
                '}';
    }
}
